← Commit list

07d2f4052

Eric Andersen
Eric Andersen
2003-12-19
FAILED Duration: 66s

Subject

vodz noticed we need to cast things back to an unsigned long or the syscall will not get the proper arguments.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/fdisk.c+2 -2
@@ -870,8 +870,8 @@ static fdisk_loff_t my_llseek (unsigned int f_d, fdisk_loff_t offset,
fdisk_loff_t result;
int retval;
- retval = syscall(__NR__llseek, f_d, ((unsigned long long) offset) >> 32,
- ((unsigned long long) offset) & 0xffffffff,
+ retval = syscall(__NR__llseek, f_d, (unsigned long)(((unsigned long long) offset) >> 32),
+ (unsigned long)(((unsigned long long) offset) & 0xffffffff),
&result, origin);
return (retval == -1 ? (fdisk_loff_t) retval : result);
}