From 5b5cfc1078505a0fedde511210a68a89944e3a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 9 Mar 2019 18:30:23 +0100 Subject: Use mode_t in chmod instead of unsigned int. This resolves FTBFS on FreeBSD. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- krename/batchrenamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3