13389
|
1 |
diff -urN rarian-0.8.0/util/rarian-sk-migrate.cpp ../SUNWgnome-libs-2.23.6.hacked/rarian-0.8.0/util/rarian-sk-migrate.cpp
|
|
2 |
--- rarian-0.8.0/util/rarian-sk-migrate.cpp 2008-03-09 18:46:23.000000000 +0000
|
|
3 |
+++ ../SUNWgnome-libs-2.23.6.hacked/rarian-0.8.0/util/rarian-sk-migrate.cpp 2008-09-03 16:12:37.416091000 +0100
|
|
4 |
@@ -279,8 +279,14 @@
|
|
5 |
struct stat buf;
|
|
6 |
char *path = NULL;
|
|
7 |
|
|
8 |
- if (argc != 3 || access (argv[1], R_OK)) {
|
|
9 |
+ if (argc == 3) {
|
|
10 |
+ if (access (argv[1], R_OK) < 0)
|
|
11 |
fprintf (stderr, "ERROR: Cannot access directory %s\n", argv[1]);
|
|
12 |
+ exit (1);
|
|
13 |
+ }
|
|
14 |
+ else {
|
|
15 |
+ fprintf (stderr, "Usage: %s <Input Dir> <Program>\n", argv[0]);
|
|
16 |
+ exit (1);
|
|
17 |
}
|
|
18 |
reg = rrn_reg_new_full ();
|
|
19 |
|