mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
cdba: allow specifying symlink as a boot file
cdba will choke with 'is not a regular file' message if one specifies symlink as a boot file argument. Support using symlinks as a boot file. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
This commit is contained in:
committed by
Bjorn Andersson
parent
aac4562cfc
commit
dde2030cda
2
cdba.c
2
cdba.c
@@ -660,7 +660,7 @@ int main(int argc, char **argv)
|
||||
fastboot_file = argv[optind];
|
||||
if (lstat(fastboot_file, &sb))
|
||||
err(1, "unable to read \"%s\"", fastboot_file);
|
||||
if (!S_ISREG(sb.st_mode))
|
||||
if (!S_ISREG(sb.st_mode) && !S_ISLNK(sb.st_mode))
|
||||
errx(1, "\"%s\" is not a regular file", fastboot_file);
|
||||
|
||||
request_select_board(board);
|
||||
|
||||
Reference in New Issue
Block a user