Skip to content

Commit

Permalink
On Linux doas no longer requires the user to specify the double-dash …
Browse files Browse the repository at this point in the history
…(--)

prior to a command that accepts arguments. Patch provided by Martijn
van Duren.
  • Loading branch information
Jesse Smith committed Aug 6, 2020
1 parent d49ac8e commit 04b377f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ Create a new file in the root user's home:

doas touch /root/new-file

On Linux commands with arguments should be prefixed by a double-dash (--). Here we remove a directory owned by root:
On Linux versions of doas prior to 6.3p1 required commands with arguments to be prefixed by a double-dash (--). From 6.3p1 and onward the double-dash is no longer required. Here we remove a directory owned by root:

doas -- rm -rf old-directory
2 changes: 1 addition & 1 deletion doas.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ main(int argc, char **argv)

uid = getuid();

while ((ch = getopt(argc, argv, "a:C:nSsu:")) != -1) {
while ((ch = getopt(argc, argv, "+a:C:nSsu:")) != -1) {
switch (ch) {
#if defined(USE_BSD_AUTH)
case 'a':
Expand Down

0 comments on commit 04b377f

Please sign in to comment.