Skip to content

Commit

Permalink
1977 zfs allow arguments not parsed correctly after pyzfs removal
Browse files Browse the repository at this point in the history
Reviewed by: Garrett D'Amore <[email protected]>
Reviewed by: Albert Lee <[email protected]>
Approved by: Richard Lowe <[email protected]>
  • Loading branch information
alhazred committed Jan 16, 2012
1 parent c909a41 commit c560ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/src/cmd/zfs/zfs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/*
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright 2012 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2011 by Delphix. All rights reserved.
*/

Expand Down Expand Up @@ -4449,7 +4449,7 @@ parse_allow_args(int argc, char **argv, boolean_t un, struct allow_opts *opts)
argc--;
argv++;
opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
} else if (argc == 1) {
} else if (argc == 1 && !un) {
opts->prt_perms = B_TRUE;
opts->dataset = argv[argc-1];
} else {
Expand Down

0 comments on commit c560ed2

Please sign in to comment.