diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-15 12:41:24 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-15 12:41:24 -0400 |
commit | 4a8aadbbdf7e93d4c237c33ee6b79b212aa868b2 (patch) | |
tree | 61ee6e41fb30678240e6454624db0e32335df40f /libs/ardour/audiosource.cc | |
parent | dca2774508a577bd817a80db9b80f056d95190f1 (diff) |
Use g_rename in AudioSource::rename_peakfile for portability
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r-- | libs/ardour/audiosource.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index 93a1c6ceb5..92d35ab1d3 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -202,7 +202,7 @@ AudioSource::rename_peakfile (string newpath) string oldpath = peakpath; if (Glib::file_test (oldpath, Glib::FILE_TEST_EXISTS)) { - if (rename (oldpath.c_str(), newpath.c_str()) != 0) { + if (g_rename (oldpath.c_str(), newpath.c_str()) != 0) { error << string_compose (_("cannot rename peakfile for %1 from %2 to %3 (%4)"), _name, oldpath, newpath, strerror (errno)) << endmsg; return -1; } |