xcreate(): perror already prints error name and newline, remove redundancy.
authorRob Landley <rob@landley.net>
Sun, 4 Nov 2007 21:31:06 +0000 (15:31 -0600)
committerRob Landley <rob@landley.net>
Sun, 4 Nov 2007 21:31:06 +0000 (15:31 -0600)
lib/lib.c

index fe85c5f..95ba121 100644 (file)
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -188,7 +188,7 @@ void xaccess(char *path, int flags)
 int xcreate(char *path, int flags, int mode)
 {
        int fd = open(path, flags, mode);
-       if (fd == -1) perror_exit("No file %s\n", path);
+       if (fd == -1) perror_exit("%s", path);
        return fd;
 }