]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/pw.c
Clean up the synopsis section & fix mandoc warnings
[pw-darwin.git] / pw / pw.c
diff --git a/pw/pw.c b/pw/pw.c
index 700a7b2e533219581ffc825a47a51eea4cf1e3f2..4f92034a5d2086d6d6219dc509c2702acf123db6 100644 (file)
--- a/pw/pw.c
+++ b/pw/pw.c
@@ -1,4 +1,6 @@
 /*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
  * Copyright (C) 1996
  *     David L. Nugent.  All rights reserved.
  *
@@ -160,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;
                }