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 11 months ago
parent
commit
5b5cfc1078
Signed by: SlavekB <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 )
fundo->close();

// Make fundo exuteable
if (chmod(m_undoScript.local8Bit(), (unsigned int) S_IRUSR | S_IWUSR | S_IXUSR))
if (chmod(m_undoScript.local8Bit(), (mode_t)(S_IRUSR | S_IWUSR | S_IXUSR)))
p->error( i18n("Can't set executable bit on undo script.") );
delete fundo;
}


Loading…
Cancel
Save