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

remove -u at s6-rc-compile

parent f9d6f281
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,7 @@ int db_compile(char const *workdir, char const *tree, char const *treename, char
stralloc source = STRALLOC_ZERO ;
stralloc destination = STRALLOC_ZERO ;
stralloc uid = STRALLOC_ZERO ;
if (!stralloc_cats(&destination,workdir)) retstralloc(0,"compile_db") ;
if (!stralloc_cats(&destination,SS_DB)) retstralloc(0,"compile_db") ;
if (!stralloc_0(&destination)) retstralloc(0,"compile_db") ;
......@@ -60,14 +59,8 @@ int db_compile(char const *workdir, char const *tree, char const *treename, char
if (!stralloc_cats(&source,workdir)) retstralloc(0,"compile_db") ;
if (!stralloc_cats(&source,SS_DB SS_SRC)) retstralloc(0,"compile_db") ;
if (!stralloc_0(&source)) retstralloc(0,"compile_db") ;
if (!db_get_permissions(&uid,tree))
{
VERBO3 strerr_warnwu1sys("get database permissions") ;
return 0 ;
}
char const *newargv[9] ;
char const *newargv[7] ;
unsigned int m = 0 ;
char fmt[UINT_FMT] ;
fmt[uint_fmt(fmt, VERBOSITY)] = 0 ;
......@@ -75,8 +68,6 @@ int db_compile(char const *workdir, char const *tree, char const *treename, char
newargv[m++] = S6RC_BINPREFIX "s6-rc-compile" ;
newargv[m++] = "-v" ;
newargv[m++] = fmt ;
newargv[m++] = "-u" ;
newargv[m++] = uid.s ;
newargv[m++] = "--" ;
newargv[m++] = destination.s ;
newargv[m++] = source.s ;
......@@ -96,7 +87,6 @@ int db_compile(char const *workdir, char const *tree, char const *treename, char
stralloc_free(&source) ;
stralloc_free(&destination) ;
stralloc_free(&uid) ;
return 1 ;
}
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