Use mode_t in chmod instead of unsigned int.

This resolves FTBFS on FreeBSD.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5b5cfc1078)
r14.0.x r14.0.6
Slávek Banko 6 years ago
parent aca945972d
commit 65dc1eb377
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -346,7 +346,7 @@ void BatchRenamer::work( ProgressDialog* p )
fundo->close(); fundo->close();
// Make fundo exuteable // 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.") ); p->error( i18n("Can't set executable bit on undo script.") );
delete fundo; delete fundo;
} }

Loading…
Cancel
Save