diff options
author | Slávek Banko <[email protected]> | 2019-03-09 18:30:23 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-03-09 18:30:23 +0100 |
commit | 5b5cfc1078505a0fedde511210a68a89944e3a86 (patch) | |
tree | 0610ccaf2fc82e9a2a0d402ebc79e0d0f41edd01 | |
parent | 0ef8a24aff673045912bb63aa6311f2b4984c13d (diff) | |
download | krename-5b5cfc1078505a0fedde511210a68a89944e3a86.tar.gz krename-5b5cfc1078505a0fedde511210a68a89944e3a86.zip |
Use mode_t in chmod instead of unsigned int.
This resolves FTBFS on FreeBSD.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | krename/batchrenamer.cpp | 2 |
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; } |