All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20091028124627.GA20936@mock.linuxdev.us.dell.com>

diff --git a/a/1.txt b/N1/1.txt
index 2d6e572..54b4635 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -2,7 +2,7 @@ As of now, udev does not support move events that are generated when
 network interfaces are renamed. This patch extends udev to support move
 events. With this patch udev would support rules like 
 
-ACTION="move", SUBSYSTEM="net", PROGRAM="netif_id %k"
+ACTION=="move", SUBSYSTEM=="net", PROGRAM="netif_id %k"
 
 Signed-off-by: Narendra K <Narendra_K@dell.com>
 ---
@@ -18,14 +18,14 @@ index f4d7121..4a77753 100644
  	}
  
 +	/* handle "move" event */
-+	if (strcmp(udev_device_get_subsystem(dev), "net") = 0 && strcmp(udev_device_get_action(dev), "move") = 0) {
++	if (strcmp(udev_device_get_subsystem(dev), "net") == 0 && strcmp(udev_device_get_action(dev), "move") == 0) {
 +		udev_rules_apply_to_event(rules, event);
 +		udev_device_update_db(dev);
 +		goto exit;
 +	}
 +
  	/* remove device node */
- 	if (major(udev_device_get_devnum(dev)) != 0 && strcmp(udev_device_get_action(dev), "remove") = 0) {
+ 	if (major(udev_device_get_devnum(dev)) != 0 && strcmp(udev_device_get_action(dev), "remove") == 0) {
  		/* import database entry and delete it */
 -- 
 
diff --git a/a/content_digest b/N1/content_digest
index 0ed8870..c31bf2e 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0Narendra K <Narendra_K@dell.com>\0"
  "Subject\0[PATCH]udev:Extend udev to support move events\0"
- "Date\0Wed, 28 Oct 2009 12:46:29 +0000\0"
+ "Date\0Wed, 28 Oct 2009 07:46:29 -0500\0"
  "To\0linux-hotplug@vger.kernel.org\0"
  "Cc\0netdev@vger.kernel.org"
   matt_domsch@dell.com
@@ -14,7 +14,7 @@
  "network interfaces are renamed. This patch extends udev to support move\n"
  "events. With this patch udev would support rules like \n"
  "\n"
- "ACTION=\"move\", SUBSYSTEM=\"net\", PROGRAM=\"netif_id %k\"\n"
+ "ACTION==\"move\", SUBSYSTEM==\"net\", PROGRAM=\"netif_id %k\"\n"
  "\n"
  "Signed-off-by: Narendra K <Narendra_K@dell.com>\n"
  "---\n"
@@ -30,18 +30,18 @@
  " \t}\n"
  " \n"
  "+\t/* handle \"move\" event */\n"
- "+\tif (strcmp(udev_device_get_subsystem(dev), \"net\") = 0 && strcmp(udev_device_get_action(dev), \"move\") = 0) {\n"
+ "+\tif (strcmp(udev_device_get_subsystem(dev), \"net\") == 0 && strcmp(udev_device_get_action(dev), \"move\") == 0) {\n"
  "+\t\tudev_rules_apply_to_event(rules, event);\n"
  "+\t\tudev_device_update_db(dev);\n"
  "+\t\tgoto exit;\n"
  "+\t}\n"
  "+\n"
  " \t/* remove device node */\n"
- " \tif (major(udev_device_get_devnum(dev)) != 0 && strcmp(udev_device_get_action(dev), \"remove\") = 0) {\n"
+ " \tif (major(udev_device_get_devnum(dev)) != 0 && strcmp(udev_device_get_action(dev), \"remove\") == 0) {\n"
  " \t\t/* import database entry and delete it */\n"
  "-- \n"
  "\n"
  "With regards,\n"
  Narendra K
 
-064bd77123b08be0ba62fe79a42f0a70ad7e7a8e9b75fc41a06b6b131365c6b0
+784eaeaa6c70f334c5e432ca861d8f33b828bceee2b4bb40ea32283977e393af

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.