Use mode_t in chmod instead of unsigned int.

This resolves FTBFS on FreeBSD.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/5/head
Slávek Banko il y a 5 ans
Parent 0ef8a24aff
révision 5b5cfc1078
Signé par: SlavekB
ID de la clé GPG: 608F5293A04BE668

@ -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;
}

Chargement…
Annuler
Enregistrer