diff options
author | Josh Triplett <josh@joshtriplett.org> | 2018-09-15 16:10:29 -0700 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-09-18 23:43:37 +0200 |
commit | 2848db123e1452d2c71840b7c00ca198c3626d4e (patch) | |
tree | 88e5988ce485cb954dd43d80328c4f2f21a92143 /scripts/t | |
parent | a7901786002cf4bd9f1dfbf3e4d844fc27478a8b (diff) | |
download | dpkg-2848db123e1452d2c71840b7c00ca198c3626d4e.tar.gz |
perl: Replace all calls to Cwd::cwd with Cwd::getcwd
The former calls /bin/pwd, while the latter uses the getcwd() syscall
directly.
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts/t')
-rw-r--r-- | scripts/t/Dpkg_Shlibs.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/t/Dpkg_Shlibs.t b/scripts/t/Dpkg_Shlibs.t index 4dc98bb3f..a2b892d74 100644 --- a/scripts/t/Dpkg_Shlibs.t +++ b/scripts/t/Dpkg_Shlibs.t @@ -54,7 +54,7 @@ Dpkg::Shlibs::blank_library_paths(); # We want relative paths inside the ld.so.conf fragments to work, and $srcdir # is usually a relative path, so let's temporarily switch directory. # XXX: An alternative would be to make parse_ldso_conf relative path aware. -my $cwd = cwd(); +my $cwd = getcwd(); test_needs_srcdir_switch(); Dpkg::Shlibs::parse_ldso_conf('t/Dpkg_Shlibs/ld.so.conf'); chdir($cwd); |