]> git.ipfire.org Git - thirdparty/coreutils.git/commit
chcon: avoid redundant context allocations
authorNamhyung Kim <namhyung@gmail.com>
Mon, 30 Jun 2014 15:12:42 +0000 (00:12 +0900)
committerPádraig Brady <P@draigBrady.com>
Tue, 1 Jul 2014 14:45:53 +0000 (15:45 +0100)
commit3106de5c789834cc9ee01fbc27b83b217e45e2ef
tree5b16bfa091bd6684b440990e46987471b260c598
parente4081e44e0dcc4bfe11d0da0ae47518df087349d
chcon: avoid redundant context allocations

Since context is verified by security_check_context() it can be used in
change_file_context() without converting to context_t every time.

* src/chcon.c (change_file_context): Use specified_context directly.
src/chcon.c