--- rarian-sk-migrate.cpp 2008-03-09 18:46:23.000000000 +0000
+++ rarian-sk-migrate.cpp.hacked 2008-09-03 16:41:10.435638000 +0100
@@ -279,8 +279,14 @@
struct stat buf;
char *path = NULL;
- if (argc != 3 || access (argv[1], R_OK)) {
+ if (argc == 3) {
+ if (access (argv[1], R_OK) < 0)
fprintf (stderr, "ERROR: Cannot access directory %s\n", argv[1]);
+ exit (1);
+ }
+ else {
+ fprintf (stderr, "Usage: %s \n", argv[0]);
+ exit (1);
}
reg = rrn_reg_new_full ();