Whamcloud - gitweb
LU-7057 utils: use stronger flags when opening volatile files 26/16126/2
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 28 Aug 2015 18:03:52 +0000 (13:03 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 2 Sep 2015 02:44:57 +0000 (02:44 +0000)
commit0e170303e6d5ffcd7c03eb1a4269ef181ce7cc2a
tree25a7139b29748020cd8ff955befd1fe8cc68491b
parentfb8e349de2c11082b7e4de83146c0058e221fa37
LU-7057 utils: use stronger flags when opening volatile files

Existing files with volatile-ish names may be accidentally opened by
llapi_create_volatile(). This is not the intent so disallow this
behavior by adding O_EXCL and O_NOFOLLOW to the flags to open().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I4246ec7660b154ea2aeca6c28a4704ddd9d429f8
Reviewed-on: http://review.whamcloud.com/16126
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
lustre/utils/liblustreapi.c