-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
writer: Fix return value of lcfs_node_unset_xattr
Since the first creation of this code in 5ac1f5c "lib: Update xattr APIs" this function has always returned an error code - but nothing checked it, so it didn't matter. Now also, currently this function cannot fail but let's give ourselves some flexibility here; perhaps we want to e.g. invoke `realloc` and in that case we'd need to handle OOM. I just noticed this while working on commit 02077e8 to reject empty xattr names. Change this to return success, and also check its return value in the set path. Signed-off-by: Colin Walters <walters@verbum.org>
- Loading branch information
1 parent
c861efa
commit 4bab2fb
Showing
2 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
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
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