summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorSachidananda Urs <sac@gluster.com>2011-08-04 16:59:52 +0530
committerAnand Avati <avati@gluster.com>2011-08-05 03:13:41 -0700
commitbed8d32a52b2a58b905e91828c3155cba2544058 (patch)
tree8836a3ae25ff680ce880331139526c2f71296ee7 /xlators/protocol
parentb510ec361482a57c32b81aebb9d61a50676727f9 (diff)
Replace mktemp(3) with mkstemp(3).
Man page states: Some implementations follow 4.3BSD and replace XXXXXX by the current process ID and a single letter, so that at most 26 different names can be returned. Since on the one hand the names are easy to guess, and on the other hand there is a race between testing whether the name exists and opening the file, every use of mktemp() is a security risk. The race is avoided by mkstemp(3). Change-Id: Ida95403b55024ecd07ef811a0835e01a9a7f092b BUG: 3331 Reviewed-on: http://review.gluster.com/163 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'xlators/protocol')
0 files changed, 0 insertions, 0 deletions