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:41 +0100
commit65dc1eb377790d7c18e1aa17d1479252e87592a7 (patch)
tree5b6ca3c3256b0c5fdfc44274f0f25766bdba3509
parentaca945972d1b940b12308fec1c77c7d284521d8a (diff)
downloadkrename-65dc1eb377790d7c18e1aa17d1479252e87592a7.tar.gz
krename-65dc1eb377790d7c18e1aa17d1479252e87592a7.zip
Use mode_t in chmod instead of unsigned int.r14.0.6
This resolves FTBFS on FreeBSD. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 5b5cfc1078505a0fedde511210a68a89944e3a86)
-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;
}