6136e045be
Tue Feb 04 2003 Florian La Roche <Florian.LaRoche@redhat.de> - add symlink to shared lib Wed Jan 22 2003 Tim Powers <timp@redhat.com> - rebuilt Fri Nov 29 2002 Jeff Johnson <jbj@redhat.com> - don't segfault if device arg is missing.
12 lines
272 B
Diff
12 lines
272 B
Diff
--- lockdev-1.0.0/src/sample.c.jbj 2002-11-29 10:10:35.000000000 -0500
|
|
+++ lockdev-1.0.0/src/sample.c 2002-11-29 10:12:24.000000000 -0500
|
|
@@ -31,6 +31,8 @@
|
|
}
|
|
else dev = p;
|
|
}
|
|
+ if (dev == NULL)
|
|
+ usage();
|
|
i = 0;
|
|
(void) dev_setpid(getppid());
|
|
switch(ch) {
|