Hide Forgot
libglusterfs/src/compat.c: char * mkdtemp (char *tempstring) { ... new_string = mktemp (tempstring); if (!new_string) goto out; ... } mktemp(3) is deprecated, use mkstemp(3). 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: http://review.gluster.com/163 (Man page states:) merged in master by Anand Avati (avati)
finding the code updated in the latest git sync.