Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/coreutils/split.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 20  static const struct suffix_mult split_su Line 20  static const struct suffix_mult split_su
20  #if ENABLE_FEATURE_SPLIT_FANCY  #if ENABLE_FEATURE_SPLIT_FANCY
21   { "g", 1024*1024*1024 },   { "g", 1024*1024*1024 },
22  #endif  #endif
23   { }   { "", 0 }
24  };  };
25    
26  /* Increment the suffix part of the filename.  /* Increment the suffix part of the filename.
# Line 79  int split_main(int argc UNUSED_PARAM, ch Line 79  int split_main(int argc UNUSED_PARAM, ch
79    
80   argv += optind;   argv += optind;
81   if (argv[0]) {   if (argv[0]) {
82     int fd;
83   if (argv[1])   if (argv[1])
84   sfx = argv[1];   sfx = argv[1];
85   xmove_fd(xopen(argv[0], O_RDONLY), 0);   fd = open_or_warn_stdin(argv[0]);
86     if (fd == -1)
87     return EXIT_FAILURE;
88     xmove_fd(fd, STDIN_FILENO);
89   } else {   } else {
90   argv[0] = (char *) bb_msg_standard_input;   argv[0] = (char *) bb_msg_standard_input;
91   }   }

Legend:
Removed from v.983  
changed lines
  Added in v.984