[PATCH v2] truncate: new applet
Bartosz Gołaszewski
bartekgola at gmail.com
Wed Mar 4 19:45:08 UTC 2015
2015-03-04 17:04 GMT+01:00 Ari Sundholm <ari at tuxera.com>:
>> bb_perror_msg_and_die()?
>>
>
> Would we not get an unrelated error string appended?
>
> By changing the above to bb_perror_msg_and_die("no files specified"):
>
> $ ./busybox truncate -c -s 1M
> truncate: no files specified: No such file or directory
>
> ... which is a bit weird.
>
> Maybe bb_error_msg() followed by xfunc_die()?
Sorry for the typo - it was supposed to be bb_error_msg_and_die().
Best regards,
Bartosz Golaszewski
More information about the busybox
mailing list