Commit c126d5ac authored by Committed by Jean-Baptiste Kempf
Fix directory existence check.
mkdir() followed by errno==EEXIST is not sufficient to determine if a directory exists. Do a stat() to check for existence before trying mkdir(). Signed-off-by: Frank Henigman <firstname.lastname@example.org> Signed-off-by: Jean-Baptiste Kempf <email@example.com>
Showing with 13 additions and 3 deletions