aboutsummaryrefslogtreecommitdiffstats
path: root/pullimap
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-03-09 15:34:39 +0100
committerGuilhem Moulin <guilhem@fripost.org>2016-03-09 15:34:39 +0100
commite69c927ac798156e99407b4b00c15f446d4ca4d6 (patch)
tree9dc01693c0de284e51fc222d67169c4d58151f2e /pullimap
parentc5468b4a598afa09d8e4c0d8e46ab44cca1e9c60 (diff)
typo: F_[GS]ETFL → F_[GS]ETFD
Diffstat (limited to 'pullimap')
-rwxr-xr-xpullimap6
1 files changed, 3 insertions, 3 deletions
diff --git a/pullimap b/pullimap
index 351b4f3..b620891 100755
--- a/pullimap
+++ b/pullimap
@@ -25,7 +25,7 @@ our $VERSION = '0.3';
my $NAME = 'pullimap';
use Errno 'EINTR';
-use Fcntl qw/O_CREAT O_RDWR O_DSYNC LOCK_EX SEEK_SET F_GETFL F_SETFL FD_CLOEXEC/;
+use Fcntl qw/O_CREAT O_RDWR O_DSYNC LOCK_EX SEEK_SET F_GETFD F_SETFD FD_CLOEXEC/;
use Getopt::Long qw/:config posix_default no_ignore_case gnu_getopt auto_version/;
use List::Util 'first';
use Socket qw/PF_INET PF_INET6 SOCK_STREAM/;
@@ -83,8 +83,8 @@ do {
}
sysopen($STATE, $statefile, O_CREAT|O_RDWR|O_DSYNC, 0600) or die "Can't open $statefile: $!";
- my $flags = fcntl($STATE, F_GETFL, 0) or die "fcntl F_GETFL: $!";
- fcntl($STATE, F_SETFL, $flags | FD_CLOEXEC) or die "fcntl F_SETFL: $!";
+ my $flags = fcntl($STATE, F_GETFD, 0) or die "fcntl F_GETFD: $!";
+ fcntl($STATE, F_SETFD, $flags | FD_CLOEXEC) or die "fcntl F_SETFD: $!";
flock($STATE, LOCK_EX) or die "Can't flock $statefile: $!";
};