summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-03-09 18:30:23 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-03-09 18:30:23 +0100
commit5b5cfc1078505a0fedde511210a68a89944e3a86 (patch)
tree0610ccaf2fc82e9a2a0d402ebc79e0d0f41edd01
parent0ef8a24aff673045912bb63aa6311f2b4984c13d (diff)
downloadkrename-5b5cfc10.tar.gz
krename-5b5cfc10.zip
Use mode_t in chmod instead of unsigned int.
This resolves FTBFS on FreeBSD. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--krename/batchrenamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/krename/batchrenamer.cpp b/krename/batchrenamer.cpp
index 98b2ef4..bfebf35 100644
--- a/krename/batchrenamer.cpp
+++ b/krename/batchrenamer.cpp
@@ -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;
}