projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b02adc6
)
Add one more parameter check.
author
Ulrich Drepper
<drepper@redhat.com>
Fri, 2 Dec 2005 21:41:00 +0000
(21:41 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Fri, 2 Dec 2005 21:41:00 +0000
(21:41 +0000)
sysdeps/generic/xmknod.c
patch
|
blob
|
history
diff --git
a/sysdeps/generic/xmknod.c
b/sysdeps/generic/xmknod.c
index
57ed460
..
c2daa46
100644
(file)
--- 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;
}