Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[git] 2nd invitation to include file with git add -A
- Loading branch information
1 parent
6ff3660
commit 246cf30
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...ecipes-devtools/opkg/opkg/0003-Relax_checks_for_existing_dirs_to_allow_symlinks_too.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- a/libopkg/opkg_install.c 2018-01-10 04:51:25.000000000 +0100 | ||
+++ b/libopkg/opkg_install.c 2018-01-10 05:01:00.829598878 +0100 | ||
@@ -451,9 +451,10 @@ | ||
pkg_t *owner; | ||
pkg_t *obs; | ||
int existing_is_dir = file_is_dir(filename); | ||
+ int existing_is_lnk = file_is_symlink(filename); | ||
|
||
/* OK if both the existing file and new file are directories. */ | ||
- if (existing_is_dir && S_ISDIR(file_info->mode)) { | ||
+ if (existing_is_lnk || (existing_is_dir && S_ISDIR(file_info->mode))) { | ||
continue; | ||
} else if (existing_is_dir || S_ISDIR(file_info->mode)) { | ||
/* Can't mix directory and non-directory. For normal files, |