Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70239 > unrolled thread

Re: Python, Linux, and the setuid bit

Started byChris Angelico <rosuav@gmail.com>
First post2014-04-15 11:15 +1000
Last post2014-04-15 11:15 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python, Linux, and the setuid bit Chris Angelico <rosuav@gmail.com> - 2014-04-15 11:15 +1000

#70239 — Re: Python, Linux, and the setuid bit

FromChris Angelico <rosuav@gmail.com>
Date2014-04-15 11:15 +1000
SubjectRe: Python, Linux, and the setuid bit
Message-ID<mailman.9261.1397524516.18130.python-list@python.org>
On Tue, Apr 15, 2014 at 7:13 AM, Ethan Furman <ethan@stoneleaf.us> wrote:
> When I compiled it I was given a couple warnings.  Can any one shed light on
> what they mean?

They mean, most likely, that the author compiled the program on his
own computer and not on any other. If I had to make a guess, I'd say
that it would compile nicely on a 32-bit system, and you're running a
64-bit system; according to gcc on my amd64 Debian Wheezy here,
sizeof(short) is 2 bytes, int is 4, long is 8.

Do you feel like patching the program? As Grant says, casting to (char
*) is the more usual way to do this sort of arithmetic. Since they're
being cast to (unsigned int), you'll *probably* get away with this, as
long as the environment doesn't exceed 4GB in size (!!), so you could
just ignore it (it's a warning, not an error, after all); but you can
probably fix it for all platforms by making the two changes Grant
suggested.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web