summaryrefslogtreecommitdiffstats
path: root/pw/pw.c
diff options
context:
space:
mode:
Diffstat (limited to 'pw/pw.c')
-rw-r--r--pw/pw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pw/pw.c b/pw/pw.c
index 5f02a15..4f92034 100644
--- a/pw/pw.c
+++ b/pw/pw.c
@@ -162,7 +162,8 @@ main(int argc, char *argv[])
PWF._altdir = PWF_ROOTDIR;
}
snprintf(conf.etcpath, sizeof(conf.etcpath),
- "%s%s", optarg, arg == 'R' ? "/etc" : "");
+ "%s%s", optarg, arg == 'R' ?
+ _PATH_PWD : "");
} else
break;
}