Set owner of /var/run/utmp to root:utmp

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-06-02 17:22:35 -03:00
1 parent ba9c897e83
commit 0fc7654a83
4 files changed
+16

No files matched your search

+12
View File
@@ -17,6 +17,8 @@
#include <sys/wait.h>
#endif
#include <grp.h>
#include "helpers.h"
/*
@@ -157,6 +159,16 @@ int run_parts(char *dir, ...)
return 0;
}
int getgroup(char *s)
{
struct group *grp;
if ((grp = getgrnam(s)) == NULL)
return -1;
return grp->gr_gid;
}
/*
* Other convenience functions
*/