summaryrefslogtreecommitdiff
path: root/src/rc/checkpath.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-14 05:05:22 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-14 05:05:22 +0000
commit6aab712cb4220c5a8471ba581c06676af19fae07 (patch)
tree2f343d11a00563fc5efd4baf81c082f280db4f96 /src/rc/checkpath.c
parentb054a7251b91e2b95290dfd3760f942186c2d864 (diff)
downloadopenrc-6aab712cb4220c5a8471ba581c06676af19fae07.tar.gz
openrc-6aab712cb4220c5a8471ba581c06676af19fae07.tar.bz2
openrc-6aab712cb4220c5a8471ba581c06676af19fae07.tar.xz
strip trailing newlines
Diffstat (limited to 'src/rc/checkpath.c')
-rw-r--r--src/rc/checkpath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
index db81a63..ffefc88 100644
--- a/src/rc/checkpath.c
+++ b/src/rc/checkpath.c
@@ -4,7 +4,7 @@
if necessary. It can also correct its ownership.
*/
-/*
+/*
* Copyright 2007 Roy Marples
* All rights reserved
@@ -62,7 +62,7 @@ static int do_check (char *path, uid_t uid, gid_t gid, mode_t mode, int file)
eerror ("%s: open: %s", applet, strerror (errno));
return (-1);
}
- close (fd);
+ close (fd);
} else {
einfo ("%s: creating directory", path);
if (! mode)
@@ -139,7 +139,7 @@ static int parse_owner (struct passwd **user, struct group **group,
if (user && *u) {
if (sscanf (u, "%d", &id) == 1)
*user = getpwuid (id);
- else
+ else
*user = getpwnam (u);
if (! *user)
retval = -1;