lockdev/lockdev-1.0.0-cli.patch
cvsdist 6136e045be auto-import changelog data from lockdev-1.0.0-23.src.rpm
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.
2004-09-09 08:00:01 +00:00

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) {