patches/system-tools-backends-10-group-name-change.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 15624 9475a1e99b04
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15624
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     1
--- system-tools-backends-1.4.2/users-conf.in.orig	2009-04-01 23:08:32.346712410 +0530
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     2
+++ system-tools-backends-1.4.2/users-conf.in	2009-04-01 23:08:47.268314722 +0530
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     3
@@ -1431,17 +1431,16 @@
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     4
   }
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     5
   else
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     6
   {
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     7
-    if ( $$new_data[$groups_propmap{"name"}] eq $$old_data[$group_prop_map{"name"}] )
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     8
+    $command = "$cmd_groupmod " ;
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
     9
+    if ( $$new_data[$groups_prop_map{"name"}] ne $$old_data[$groups_prop_map{"name"}] )
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    10
     {
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    11
-      $command = "$cmd_groupmod -g \'" . $$new_data[$groups_prop_map{"gid"}] .
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    12
-        "\' \'" . $$old_data[$groups_prop_map{"name"}] . "\'";
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    13
+      $command = $command . "-n \'" . $$new_data[$groups_prop_map{"name"}] . "\' ";
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    14
     }
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    15
-    else
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    16
+    if ( $$new_data[$groups_prop_map{"gid"}] ne $$old_data[$groups_prop_map{"gid"}] )
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    17
     {
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    18
-      $command = "$cmd_groupmod -g \'" . $$new_data[$groups_prop_map{"gid"}] .
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    19
-        "\' -n \'" . $$new_data[$groups_prop_map{"name"}] . "\' " .
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    20
-        "\'" . $$old_data[$groups_prop_map{"name"}] . "\'";
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    21
+      $command = $command . "-g \'" . $$new_data[$groups_prop_map{"gid"}] . "\' ";
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    22
     }
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    23
+    $command = $command . "\'" . $$old_data[$groups_prop_map{"name"}] . "\'";
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    24
 
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    25
     &gst_file_run ($command);
9475a1e99b04 2009-04-15 Hemantha Holla <[email protected]>
hem
parents:
diff changeset
    26