Skip to content

Commit

Permalink
remove log items for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jprjr committed Sep 12, 2020
1 parent 143983f commit 8e3735a
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/s6-overlay-preinit/s6-overlay-preinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ int main (void)
}
}

/* requirement: /var/log must exist (for catchall logger) */
if(mkdir(VAR_LOG, 0755) == -1)
{
if(errno != EEXIST)
{
/* /var/run does not exist and we were unable to create it */
strerr_diefu2sys(111, "mkdir ", VAR_LOG) ;
}
}

/* requirement: /var/run/s6 must exist */
if(mkdir(VAR_RUN_S6,0755) == -1)
{
Expand All @@ -53,27 +43,12 @@ int main (void)
}
}

/* requirement: /var/log/s6 must exist */
if(mkdir(VAR_LOG_S6,0755) == -1)
{
if(errno != EEXIST)
{
strerr_diefu2sys(111, "mkdir ", VAR_LOG_S6) ;
}
}

/* requirement: /var/run/s6 must be owned by current user */
if(chown(VAR_RUN_S6,getuid(),getgid()) == -1)
{
strerr_diefu2sys(111,"chown ", VAR_RUN_S6) ;
}

/* requirement: /var/log/s6 must be owned by current user */
if(chown(VAR_LOG_S6,getuid(),getgid()) == -1)
{
strerr_diefu2sys(111,"chown ", VAR_LOG_S6) ;
}

return 0;

}
Expand Down

0 comments on commit 8e3735a

Please sign in to comment.