Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70239
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; '64-bit': 0.07; 'nicely': 0.07; '32-bit': 0.09; 'bytes,': 0.09; 'system;': 0.09; 'cc:addr:python-list': 0.11; 'changes': 0.15; '(char': 0.16; "(it's": 0.16; '(unsigned': 0.16; '4gb': 0.16; 'amd64': 0.16; 'arithmetic.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mean,': 0.16; 'program?': 0.16; 'subject:bit': 0.16; 'ignore': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'platforms': 0.22; 'cc:addr:python.org': 0.22; 'environment': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; '15,': 0.26; 'compiled': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'gcc': 0.31; 'probably': 0.32; 'running': 0.33; 'subject:the': 0.34; "i'd": 0.34; 'could': 0.34; 'usual': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'two': 0.37; 'being': 0.38; 'system,': 0.38; 'according': 0.40; 'most': 0.60; "you're": 0.61; "you'll": 0.62; 'making': 0.63; 'more': 0.64; 'exceed': 0.68; 'other.': 0.75; 'ethan': 0.84; 'furman': 0.84; 'warnings.': 0.84; 'cast': 0.91; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=jaJAv9uTC4wLPry0uTIxGq/1zyJNNCocyR12gqRpvPo=; b=qB94YnOaQCGr66+LfIXcFGQopj3waAGzR6nIuEISI3mDRCGyUqlmcW3WeHsxQ/ByUi ooei3E2siumlSBA8kJelokVGuc7z6dJ8iXmlyMT20umUsthNt3LwJeRYVQI3mUAZgOVx JJZOeySLTda0EV+pUmCqVYNhawYd/XEpDwVgJHjpgiNZqvt88yM8CdmHaUvWTgVmnVvb D/JrXhZbZhbj087xtXxxxAgk0IzgcLqFscgLCpDJrSiZK7wvr57D6h8l3vJXjOmp4aiD ryqoO0I/VSWlhv9wlfs+N3wHH5fsUNm7J6bJGuOkYpqnnjEBa4+ECQsTqHbXxHlvIAyG Tm2A== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.26.161 with SMTP id m1mr32915707vdg.24.1397524513884; Mon, 14 Apr 2014 18:15:13 -0700 (PDT) |
| In-Reply-To | <534C4F8D.6090005@stoneleaf.us> |
| References | <534C4F8D.6090005@stoneleaf.us> |
| Date | Tue, 15 Apr 2014 11:15:13 +1000 |
| Subject | Re: Python, Linux, and the setuid bit |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9261.1397524516.18130.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1397524516 news.xs4all.nl 2899 [2001:888:2000:d::a6]:37768 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:70239 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python, Linux, and the setuid bit Chris Angelico <rosuav@gmail.com> - 2014-04-15 11:15 +1000
csiph-web