Bug 2815 - sort dont create file with option -o
Summary: sort dont create file with option -o
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.17.x
Hardware: PC Linux
: P5 trivial
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 02:59 UTC by Woshman
Modified: 2010-11-16 05:14 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Woshman 2010-11-15 02:59:25 UTC
to fix this:

sort.c -> line 415

change: xmove_fd(xopen3(str_o, O_WRONLY, 0666), STDOUT_FILENO);
to:     xmove_fd(xopen3(str_o, O_WRONLY|O_CREAT|O_TRUNC, 0666), STDOUT_FILENO);
Comment 1 Denys Vlasenko 2010-11-16 03:43:30 UTC
There is a hotfix for it:

http://busybox.net/downloads/fixes-1.17.3/busybox-1.17.3-sort.patch