[15914] in Kerberos-V5-bugs
[krbdev.mit.edu #8651] git commit
daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Mon Mar 19 20:28:56 2018
Mail-followup-to: rt@krbdev.mit.edu
mail-copies-to: never
From: "Greg Hudson via RT" <rt-comment@KRBDEV-PROD-APP-1.mit.edu>
In-Reply-To: <rt-8651@krbdev.mit.edu>
Message-ID: <rt-8651-48325.12.4221875013998@krbdev.mit.edu>
To: "'AdminCc of krbdev.mit.edu Ticket #8651'":;
Date: Mon, 19 Mar 2018 20:28:39 -0400 (EDT)
Reply-To: rt-comment@KRBDEV-PROD-APP-1.mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu
Avoid rereading non-regular profile files
If a profile file is a special device such as a pipe, then reloading
it will cause us to discard its contents. Repurpose the first
PROFILE_FILE flag bit to indicate that the file should not be
reloaded. In profile_update_file_data_locked(), set the flag on the
first load if stat() doesn't indicate a regular file, and check the
flag before testing whether we need to perform any subsequent reload.
Later on in profile_update_file_data_locked(), specifically unset the
DIRTY flag rather than unsetting all flags other than SHARED, so that
we don't clear the NO_RELOAD flag.
https://github.com/krb5/krb5/commit/2c26419ad7ea4800995180292ce39db863672fa9
Author: Greg Hudson <ghudson@mit.edu>
Commit: 2c26419ad7ea4800995180292ce39db863672fa9
Branch: master
src/util/profile/prof_file.c | 9 ++++++++-
src/util/profile/prof_int.h | 5 +----
2 files changed, 9 insertions(+), 5 deletions(-)
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs