Bug 582891 - [Feature Request] behavior and return value of guestfish umask cmd should be changed
[Feature Request] behavior and return value of guestfish umask cmd should be ...
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Richard W.M. Jones
Depends On:
Blocks: 583242 627832
  Show dependency treegraph
Reported: 2010-04-16 02:17 EDT by Pengzhen Cao
Modified: 2010-08-27 01:13 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 583242 (view as bug list)
Last Closed: 2010-05-12 08:25:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Pengzhen Cao 2010-04-16 02:17:29 EDT
Description of problem:
1. umask should return the current umask when called with no parameter, and should set the umask when it is called with a parameter. It can only return the previous umask but not the current umask. Or There should be a separate cmd to provide this feature(like " mount"/"mounts")

2. the return value should be more human readable.
The return value now is just calculate the oct bit value, which is very confused.
current return value is 18 for mode 022, instead of "022" or "0022"
022->000 010 010->2^1+2^4->18

Version-Release number of selected component (if applicable):
libguestfs-1.0.85-1.fc12.3.x86_64,  latest git version

How reproducible:

Steps to Reproduce:

Note You need to log in before you can comment on or make changes to this bug.