Skip to content
Snippets Groups Projects
Commit 195da49b authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

Format fix of the owner string

parent ccd5b6a4
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,8 @@
#include <oblibs/log.h>
#include <oblibs/string.h>
#include <skalibs/types.h>
#include <66/tree.h>
#include <66/resolve.h>
#include <66/constants.h>
......@@ -42,9 +44,10 @@ int tree_resolve_master_create(char const *base, uid_t owner)
}
resolve_init(wres) ;
char ownerstr[UID_FMT];
ownerstr[uid_fmt(ownerstr, owner)] = 0 ;
mres.name = resolve_add_string(wres, SS_MASTER + 1) ;
mres.allow = resolve_add_string(wres, pw->pw_name) ;
mres.allow = resolve_add_string(wres, ownerstr) ; ;
mres.nallow++ ;
log_trace("write Master resolve file of trees") ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment