Browse Source

Use mode_t in chmod instead of unsigned int.

This resolves FTBFS on FreeBSD.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 3 months ago
parent
commit
5b5cfc1078
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      krename/batchrenamer.cpp

+ 1
- 1
krename/batchrenamer.cpp View File

@@ -346,7 +346,7 @@ void BatchRenamer::work( ProgressDialog* p )
346 346
         fundo->close();
347 347
 
348 348
         // Make fundo exuteable
349
-        if (chmod(m_undoScript.local8Bit(), (unsigned int) S_IRUSR | S_IWUSR | S_IXUSR))
349
+        if (chmod(m_undoScript.local8Bit(), (mode_t)(S_IRUSR | S_IWUSR | S_IXUSR)))
350 350
             p->error( i18n("Can't set executable bit on undo script.") );
351 351
         delete fundo;
352 352
     }

Loading…
Cancel
Save