generator.ml: use new "Pathname" designation
authorJim Meyering <meyering@redhat.com>
Tue, 11 Aug 2009 13:59:56 +0000 (15:59 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 13 Aug 2009 12:45:34 +0000 (14:45 +0200)
commit84fc760439e82e6b3616abd0d1f9bd7d7eb01ec0
tree5ac525b34b3bf5b3ef336f567c72cd8859b18ab6
parent79b5084f70cb67c37dd7cbe60821a78981fd8d59
generator.ml: use new "Pathname" designation

Nearly every file-related function in daemons/*.c is affected:
Remove this pair of statements from each affected do_* function:
-  NEED_ROOT (return -1);
-  ABS_PATH (dir, return -1);
and change the type of the corresponding parameter to "const char *".
* src/generator.ml: Emit NEED_ROOT just once, even when there are two or
more Pathname args.
43 files changed:
daemon/augeas.c
daemon/blockdev.c
daemon/checksum.c
daemon/cmp.c
daemon/command.c
daemon/cpmv.c
daemon/debug.c
daemon/devsparts.c
daemon/dir.c
daemon/du.c
daemon/ext2.c
daemon/fallocate.c
daemon/file.c
daemon/find.c
daemon/fsck.c
daemon/glob.c
daemon/grep.c
daemon/grub.c
daemon/headtail.c
daemon/hexdump.c
daemon/initrd.c
daemon/inotify.c
daemon/link.c
daemon/ls.c
daemon/lvm.c
daemon/mknod.c
daemon/mount.c
daemon/ntfs.c
daemon/readdir.c
daemon/realpath.c
daemon/scrub.c
daemon/selinux.c
daemon/sfdisk.c
daemon/stat.c
daemon/strings.c
daemon/swap.c
daemon/tar.c
daemon/upload.c
daemon/wc.c
daemon/xattr.c
daemon/zero.c
daemon/zerofree.c
src/generator.ml