From: pcanterino <> Date: Sun, 31 Oct 2004 09:31:17 +0000 (+0000) Subject: - There is no need to load the POSIX module twice X-Git-Tag: version_2_2~16 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/7aac7cf6b85925b2ae4085eaeeb0f448f7f38baa - There is no need to load the POSIX module twice - Dev-Editor also shows the current umask of the process in the about dialogue --- diff --git a/modules/Command.pm b/modules/Command.pm index 4e7e365..117d39c 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -6,7 +6,7 @@ package Command; # Execute Dev-Editor's commands # # Author: Patrick Canterino -# Last modified: 2004-10-30 +# Last modified: 2004-10-31 # use strict; @@ -910,8 +910,6 @@ sub exec_about($$) # Dev-Editor is running on a system which allows users and groups # So we display the user and the group of our process - require POSIX; - my $uid = POSIX::getuid; my $gid = POSIX::getgid; @@ -926,6 +924,10 @@ sub exec_about($$) $tpl->fillin("USER",getpwuid($uid)); $tpl->fillin("GROUP",getgrgid($gid)); + + # Process umask + + $tpl->fillin("UMASK",sprintf("%04o",umask)); } else {