| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
"status" used to be uninitialized when the if (argc == 3 ...) block
is entered. If strlen(argv[2]) is 0, i.e. if argv[2] is an empty string,
undefined behavior occurs.
Signed-off-by: Runxi Yu <me@runxiyu.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
check that the suffix is non-empty:
If strlen(argv[2]) < 1, the for loop would not run, and the status would
be uninitialized. This commit causes the suffix to be ignored if it is
empty.
print empty line when input name is empty:
If basename(3) receives an empty string or a null pointer, it returns
the string ".", but we want basename(1) to just output an empty line
when the input is empty.
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
| |
common.h and add errprint()
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
| |
printing usage.
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
|
|
| |
to the new mailing list
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
|
|
| |
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|
|
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
|