summaryrefslogtreecommitdiff
path: root/src/rc/checkpath.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-08-20 10:02:11 +0000
committerRoy Marples <roy@marples.name>2008-08-20 10:02:11 +0000
commit1ab1e9328a6313ae7d77957168484ce4b52fdf5d (patch)
tree5369c0f16c55fa3bf5bc8836bf35636e425abf39 /src/rc/checkpath.c
parenta9f7d2d5e5df184fd2eae38422605333e483c4d0 (diff)
downloadopenrc-1ab1e9328a6313ae7d77957168484ce4b52fdf5d.tar.gz
openrc-1ab1e9328a6313ae7d77957168484ce4b52fdf5d.tar.bz2
openrc-1ab1e9328a6313ae7d77957168484ce4b52fdf5d.tar.xz
Add -k,--umask option, Gentoo #232455.
Diffstat (limited to 'src/rc/checkpath.c')
-rw-r--r--src/rc/checkpath.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
index 8726dca..7ea94f0 100644
--- a/src/rc/checkpath.c
+++ b/src/rc/checkpath.c
@@ -106,28 +106,6 @@ static int do_check(char *path, uid_t uid, gid_t gid, mode_t mode, int file)
return 0;
}
-/* Based on busybox */
-static int parse_mode (mode_t *mode, char *text)
-{
- char *p;
- unsigned long l;
-
- /* Check for a numeric mode */
- if ((*text - '0') < 8) {
- l = strtoul(text, &p, 8);
- if (*p || l > 07777U) {
- errno = EINVAL;
- return -1;
- }
- *mode = (mode_t) l;
- return 0;
- }
-
- /* We currently don't check g+w type stuff */
- errno = EINVAL;
- return -1;
-}
-
static int parse_owner(struct passwd **user, struct group **group,
const char *owner)
{