Package: mc
Version: 2:4.6.2-2.1
Severity: minor
Tags: patch
We are trying to use umask 002, but result privileges for new files are 644.
We offer a simple patch to fix this problem. Probably it is necessary to add
S_IWOTH to be even more correct.
--- mc-4.6.2.orig/edit/edit.c
+++ mc-4.6.2/edit/edit.c
@@ -528,7 +528,7 @@
edit_purge_widget (edit);
edit->num_widget_lines = lines;
edit->num_widget_columns = columns;
- edit->stat1.st_mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
+ edit->stat1.st_mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH;
edit->stat1.st_uid = getuid ();
edit->stat1.st_gid = getgid ();
edit->stat1.st_mtime = 0;
-- System Information:
Debian Release: 5.0
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'proposed-updates'),
(500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]