lockdev/lockdev-1.0.3-cli.patch
Jiří Popelka 649b6dcfed - 1.0.3. No longer need 1.0.0-signal, 1.0.1-subdir, 1.0.1-fcntl,
1.0.1-32bit patches.
- Renumbered patches and sources.
2009-12-07 09:28:58 +00:00

13 lines
359 B
Diff
Executable File

diff -up lockdev-1.0.3/src/sample.c.cli lockdev-1.0.3/src/sample.c
--- lockdev-1.0.3/src/sample.c.cli 2009-12-05 15:40:16.000000000 +0100
+++ lockdev-1.0.3/src/sample.c 2009-12-05 15:48:39.000000000 +0100
@@ -32,6 +32,8 @@ main (int argc,
}
else dev = p;
}
+ if (dev == NULL)
+ usage();
i = 0;
(void) dev_setpid(getppid());
switch( ch ) {