patch-libmount_src_utils_c 482 B

1234567891011121314
  1. --- util-linux-2.23.2.orig/libmount/src/utils.c 2013-07-30 11:15:27.000000000 +0200
  2. +++ util-linux-2.23.2/libmount/src/utils.c 2013-08-14 11:58:25.000000000 +0200
  3. @@ -842,7 +842,11 @@ int mnt_open_uniq_filename(const char *f
  4. */
  5. oldmode = umask(S_IRGRP|S_IWGRP|S_IXGRP|
  6. S_IROTH|S_IWOTH|S_IXOTH);
  7. +#if defined(__GLIBC__) && !defined(__UCLIBC__)
  8. fd = mkostemp(n, O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC);
  9. +#else
  10. + fd = mkstemp(n);
  11. +#endif
  12. umask(oldmode);
  13. if (fd >= 0 && name)