Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/coreutils/uuencode.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 16  enum { Line 16  enum {
16  };  };
17    
18  int uuencode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;  int uuencode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
19  int uuencode_main(int argc, char **argv)  int uuencode_main(int argc UNUSED_PARAM, char **argv)
20  {  {
21   struct stat stat_buf;   struct stat stat_buf;
22   int src_fd = STDIN_FILENO;   int src_fd = STDIN_FILENO;
# Line 32  int uuencode_main(int argc, char **argv) Line 32  int uuencode_main(int argc, char **argv)
32   tbl = bb_uuenc_tbl_base64;   tbl = bb_uuenc_tbl_base64;
33   }   }
34   argv += optind;   argv += optind;
35   if (argc == optind + 2) {   if (argv[1]) {
36   src_fd = xopen(*argv, O_RDONLY);   src_fd = xopen(*argv, O_RDONLY);
37   fstat(src_fd, &stat_buf);   fstat(src_fd, &stat_buf);
38   mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);   mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);

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