|
Lines 81-88
Link Here
|
| 81 |
err(1, NULL); |
81 |
err(1, NULL); |
| 82 |
strcpy(masterpasswd, optarg); |
82 |
strcpy(masterpasswd, optarg); |
| 83 |
if (masterpasswd[strlen(masterpasswd) - 1] != '/') |
83 |
if (masterpasswd[strlen(masterpasswd) - 1] != '/') |
| 84 |
masterpasswd[strlen(masterpasswd)] = '/'; |
84 |
strcat(masterpasswd, "/" _MASTERPASSWD); |
| 85 |
strcat(masterpasswd, _MASTERPASSWD); |
85 |
else |
|
|
86 |
strcat(masterpasswd, _MASTERPASSWD); |
| 86 |
if ((mppath = strdup(optarg)) == NULL) |
87 |
if ((mppath = strdup(optarg)) == NULL) |
| 87 |
err(1, NULL); |
88 |
err(1, NULL); |
| 88 |
if (mppath[strlen(mppath) - 1] == '/') |
89 |
if (mppath[strlen(mppath) - 1] == '/') |