aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-02 21:41:00 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-02 21:41:00 +0000
commit975407d507f2e8ad6cbf366e22e0f41d598ddcee (patch)
treed5b872790e495c14061b25244ddab1baecfaf0ed /sysdeps/generic
parentb02adc678ab123adce16edeff2916d0f423a801c (diff)
downloadglibc-975407d507f2e8ad6cbf366e22e0f41d598ddcee.tar
glibc-975407d507f2e8ad6cbf366e22e0f41d598ddcee.tar.gz
glibc-975407d507f2e8ad6cbf366e22e0f41d598ddcee.tar.bz2
glibc-975407d507f2e8ad6cbf366e22e0f41d598ddcee.zip
Add one more parameter check.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/xmknod.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/generic/xmknod.c b/sysdeps/generic/xmknod.c
index 57ed46060d..c2daa46e07 100644
--- a/sysdeps/generic/xmknod.c
+++ b/sysdeps/generic/xmknod.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1993,1995,1996,1997,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1993,1995-1997,2002,2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -32,6 +32,12 @@ __xmknod (int vers, const char *path, mode_t mode, dev_t *dev)
return -1;
}
+ if (path == NULL)
+ {
+ __set_errno (EINVAL);
+ return -1;
+ }
+
__set_errno (ENOSYS);
return -1;
}