Magellan Linux

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

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

revision 984 by niro, Sun May 30 11:32:42 2010 UTC revision 1179 by niro, Wed Dec 15 21:33:41 2010 UTC
# Line 412  int sort_main(int argc UNUSED_PARAM, cha Line 412  int sort_main(int argc UNUSED_PARAM, cha
412  #if ENABLE_FEATURE_SORT_BIG  #if ENABLE_FEATURE_SORT_BIG
413   /* Open output file _after_ we read all input ones */   /* Open output file _after_ we read all input ones */
414   if (option_mask32 & FLAG_o)   if (option_mask32 & FLAG_o)
415   xmove_fd(xopen3(str_o, O_WRONLY, 0666), STDOUT_FILENO);   xmove_fd(xopen3(str_o, O_WRONLY|O_CREAT|O_TRUNC, 0666), STDOUT_FILENO);
416  #endif  #endif
417   flag = (option_mask32 & FLAG_z) ? '\0' : '\n';   flag = (option_mask32 & FLAG_z) ? '\0' : '\n';
418   for (i = 0; i < linecount; i++)   for (i = 0; i < linecount; i++)

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