aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-04 15:31:06 -0600
committerRob Landley <rob@landley.net>2007-11-04 15:31:06 -0600
commit961e17193887734ec977e93618bba0f045951d43 (patch)
tree118ca605757c38a248f69b86a37c0fbcac9c792a /lib
parent8ae467cdd0d90bed82ee7561e9be5bfbbc9952e1 (diff)
downloadtoybox-961e17193887734ec977e93618bba0f045951d43.tar.gz
xcreate(): perror already prints error name and newline, remove redundancy.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index fe85c5fe..95ba1216 100644
--- 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;
}