]> git.pld-linux.org Git - packages/psmisc.git/commitdiff
- alternative fix in sources
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Feb 2006 20:00:46 +0000 (20:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    psmisc-fuser-signal.patch -> 1.3

psmisc-fuser-signal.patch [deleted file]

diff --git a/psmisc-fuser-signal.patch b/psmisc-fuser-signal.patch
deleted file mode 100644 (file)
index 355d73c..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-diff -ur psmisc-21.9.org/src/fuser.c psmisc-21.9/src/fuser.c
---- psmisc-21.9.org/src/fuser.c        2005-12-14 23:20:06.000000000 +0100
-+++ psmisc-21.9/src/fuser.c    2005-12-25 02:34:17.000000000 +0100
-@@ -629,7 +629,7 @@
- #endif
-       struct inode_list *match_inodes = NULL;
-       struct names *names_head, *this_name, *names_tail;
--      int optc;
-+      int optc, skip;
-       char *option;
-       char *nsptr;
-@@ -638,6 +638,7 @@
- #endif
-       names_head = this_name = names_tail = NULL;
-       opts = 0;
-+      skip = 0;
-       sig_number = SIGKILL;
-       netdev = get_netdev();
-@@ -655,7 +656,8 @@
-                               /* FIXME longopts */
-                               continue;
-                       }
--                      while (*option) switch(*option++) {
-+                      while (*option) {
-+                              switch(*option) {
- #ifdef WITH_IPV6
-                               case '4':
-                                       ipv4_only = 1;
-@@ -714,16 +716,25 @@
-                               case 'V':
-                                       print_version();
-                                       return 0;
-+                              case ' ':
-+                                      skip = 0;
-+                                      break;
-                               default:
--                                      if ( isupper(*option) || isdigit(*option) ) {
--                                              sig_number = get_signal(option,"fuser");
--                                              break;
--                                      }
--                                      fprintf(stderr,"%s: Invalid option %c\n",argv[0] , argv[optc][1]);
-+                                      if (!skip) {
-+                                              if ( isupper(*option) || isdigit(*option) ) {
-+                                                      sig_number = get_signal(option,"fuser");
-+                                                      
-+                                                      skip++;
-+                                                      break;
-+                                              }
-+                                              fprintf(stderr,"%s: Invalid option %c\n",argv[0] , argv[optc][1]);
--                                      usage(NULL);
-+                                              usage(NULL);
-+                                      }
-                                       break;
--                      } /* switch */
-+                              } /* switch */
-+                              option++;
-+                      }
-                       continue;
-               }
-               /* File specifications */
This page took 0.041419 seconds and 4 git commands to generate.