[vhffs-dev] [1620] a bit better, having g+s on group directories forces the group owner of new files to the right gid |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [1620] a bit better, having g+s on group directories forces the group owner of new files to the right gid
- From: subversion@xxxxxxxxxxxxx
- Date: Sun, 29 Aug 2010 19:23:44 +0200
Revision: 1620
Author: gradator
Date: 2010-08-29 19:23:43 +0200 (Sun, 29 Aug 2010)
Log Message:
-----------
a bit better, having g+s on group directories forces the group owner of new files to the right gid
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Robots/Group.pm
Modified: trunk/vhffs-api/src/Vhffs/Robots/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Group.pm 2010-08-29 17:09:55 UTC (rev 1619)
+++ trunk/vhffs-api/src/Vhffs/Robots/Group.pm 2010-08-29 17:23:43 UTC (rev 1620)
@@ -52,7 +52,7 @@
Vhffs::Functions::create_dir( $hash );
$group->add_history('Ok, Robots finished the creation of the directory');
chown( $group->get_owner_uid , $group->get_gid , $hash );
- chmod( 0770 , $hash );
+ chmod( 02770 , $hash );
add_user( $user , $group , $main );
$group->set_status( Vhffs::Constants::ACTIVATED );
$group->commit;