Re: Inaccuracies in attr_get_up


From: Amon Ott <ao@rsbac.org>
Subject: Re: Inaccuracies in attr_get_up
Date: Mon, 13 Aug 2001 10:30:09 +0200

Next Article (by Date): general questions Justus Pendleton
Previous Article (by Date): Re: acl and more Amon Ott
Top of Thread: Inaccuracies in attr_get_up Aleksandr Blohin
Next in Thread: Re: Inaccuracies in attr_get_up Aleksandr Blohin
Articles sorted by: [Date] [Author] [Subject]


--Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

On Mon, 13 Aug 2001 Aleksandr Blohin wrote:
> Hi!
> This is the complete list of attributes displayed at call attr_get_up,
> but not used with it:

Thanks for your work. attr_get_up and attr_set_up had never been updated to
display only those attributes that are relevant for the targets, while
attr_get_user etc. had.

Please apply the attached patch to them to change the output.

Amon.

--Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD
Content-Type: text/x-c;
  name="attr_get_up.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attr_get_up.diff"

LS0tIGF0dHJfZ2V0X3VwLmMub2xkCVdlZCBBcHIgIDQgMTQ6MTk6MjQgMjAwMQorKysgYXR0cl9n
ZXRfdXAuYwlNb24gQXVnIDEzIDEwOjM4OjE1IDIwMDEKQEAgLTYsMTIgKzYsMTMgQEAKICNpbmNs
dWRlIDxyc2JhYy9nZXRuYW1lLmg+CiAjaW5jbHVkZSA8cnNiYWMvc3lzY2FsbHMuaD4KICNpbmNs
dWRlIDxyc2JhYy9lcnJvci5oPgorI2luY2x1ZGUgPHJzYmFjL2FjaV9kYXRhX3N0cnVjdHVyZXMu
aD4KICNpbmNsdWRlICJubHMuaCIKIAogaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKiogYXJndikK
IHsKICAgaW50IHJlcyA9IDA7Ci0gIGNoYXIgdG1wMVs4MF0sdG1wMlsxMjBdOworICBjaGFyIHRt
cDFbUlNCQUNfTUFYTkFNRUxFTl0sdG1wMltSU0JBQ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gICAgICAgIGdldF9hdHRyaWJ1dGVfcGFy
YW0odG1wMixpKTsKKyAgICAgICAgICBnZXRfYXR0cmlidXRlX25hbWUodG1wMSx1X2F0dHJfbGlz
dFtpXSk7CisgICAgICAgICAgZ2V0X2F0dHJpYnV0ZV9wYXJhbSh0bXAyLHVfYXR0cl9saXN0W2ld
KTsKICAgICAgICAgICBwcmludGYoIiVzIFx0JXNcbiIsdG1wMSx0bXAyKTsKICAgICAgICAgfQot
ICAgICAgcHJpbnRmKGdldHRleHQoIi0tIHByZXNzIHJldHVybiAtLSIpKTsKLSAgICAgIHNjYW5m
KCIlYyIsIGtleSk7Ci0gICAgICBmb3IgKGk9MTU7aTxBX25vbmU7aSsrKQorICAgICAgcHJpbnRm
KCJcblBST0NFU1M6XG4iKTsKKyAgICAgIGZvciAoaT0wO2k8UlNCQUNfUFJPQ0VTU19OUl9BVFRS
SUJVVEVTO2krKykKICAgICAgICAgewotICAgICAgICAgIGdldF9hdHRyaWJ1dGVfbmFtZSh0bXAx
LGkpOwotICAgICAgICAgIGdldF9hdHRyaWJ1dGVfcGFyYW0odG1wMixpKTsKKyAgICAgICAgICBn
ZXRfYXR0cmlidXRlX25hbWUodG1wMSxwX2F0dHJfbGlzdFtpXSk7CisgICAgICAgICAgZ2V0X2F0
dHJpYnV0ZV9wYXJhbSh0bXAyLHBfYXR0cl9saXN0W2ldKTsKICAgICAgICAgICBwcmludGYoIiVz
IFx0JXNcbiIsdG1wMSx0bXAyKTsKICAgICAgICAgfQogICAgIH0K

--Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD--
-
To unsubscribe from the rsbac list, send a mail to
majordomo@rsbac.org with
unsubscribe rsbac
as single line in the body.

Next Article (by Date): general questions Justus Pendleton
Previous Article (by Date): Re: acl and more Amon Ott
Top of Thread: Inaccuracies in attr_get_up Aleksandr Blohin
Next in Thread: Re: Inaccuracies in attr_get_up Aleksandr Blohin
Articles sorted by: [Date] [Author] [Subject]


Go to Compuniverse LWGate Home Page.