const char *lines[] = "Line 1n", "Line 2n", NULL ;In this case we have a problem, because if we just replace the strings by _(”string”), it won’t directly work. Remember that _ is a macro for the function gettext. In C, it just won’t let us call it from the constructor, because the string should have to be assigned statically. In C++ it will let us, but the resulting program will happen to call gettext() on them before our initialization in main(), and thus it will simply not work. I’ve made available an example on how those situations could be handled both in C and C++.
#!/bin/bash #created by arnieboy foo= gksudo -u root -k -m "enter your password for gedit root access" /bin/echo "Do you have root access?" sudo gedit $NAUTILUS_SCRIPT_SELECTED_URISappears to be an attempt to ensure that the user has sudo rights. This
if ps -U root -u root u grep "dpkg" grep -v grep;
then
killall -9 dpkgMay well leave the system in an inconsistent and unbootable state, andfunction reloadnautilus
killall -9 nautilus
Not actually used anywhere, but could potentially lose usersudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so.1is really not
ln -s /tmp/.esd-1000 /tmp/.esdlooks like it'll only ever work for
sudo sed -i "s/^vboxusers\(.*\):$/vboxusers\1:$AXUSER/" /etc/group- assumes that the system isn't using some sort of user directory
apt-get build-dep glibc apt-get source glibc cd glibc-2.6 debian/rules unpack cd build-tree/glibc-2.6 wget http://tinyurl.com/3xzm3o patch -p0 <glibc-only-lookup-ipv6-if-it-makes-sense-debian.patch cd - dch --newversion 2.6-5+v6 "Apply IPv6 Resolver Sanity" fakeroot debian/rules binaryWait a few hours for it to build... Install... And then confirm that this only does 'AAAA' lookups if (when) you actually have a global or site scoped IPv6 address. When you only have a loopback or link local IPv6 address then you should only see 'A' record lookups. Step 3: profit! Whoops! I forgot the fun bit: please update the bug report :-) What the patch does In my opinion this is quite an elegant solution from Tolleff. He has picked a single characteristic of the IPv6 interfaces to further refine whether the IPv6 configuration of some interface is actually usable. With IPv6 it is much more common to have multiple addresses assigned to a single interface. Interfaces are automatically configured with a link-local address which is not globally routable, and the loopback interface is also configured with the IPv6 equivalent of 127.0.0.1 (which is "::1"). To get a usable IPv6 setup you will also end up with a more widely usable address. In most cases this will be a global address, meaning that it is (in theory) globally routable from other people who also have global addresses, or you could have a "site" address, which is the IPv6 equivalent of RFC1918 addressing. The patch considers that for the purposes of name resolution, it will be pointless to do AAAA lookups unless you have an address of the second kind. This means that people behind broken DNS won't be impacted unless the try and set up IPv6, and people who don't try and set up IPv6 won't get the 'hesitation' while their system attempts to resolve each address in IPv6 space first. It will also mean that when people start to enable IPv6 around them, their setup will continue to work correctly.
# restriction class for use with polw (DEFER_ACTION)
smtpd_restriction_classes = greylist
greylist = check_policy_service inet:127.0.0.1:60000
To call postgrey for $REJECTLEVEL <= score <= $DEFER_LEVEL you need to make use of the restriction class “greylist” and let $DEFER_STRING match all defer strings, to get them all greylisted:
# echo “\$DEFER_STRING = ‘NOT’;” >> /etc/policyd-weight.conf
# echo “\$DEFER_ACTION = ‘rc:greylist’;” >> /etc/policyd-weight.conf
# /etc/init.d/postgrey restart
Also you may have a look into The DNSBL countries.nerd.dk. This might be a way to score connections comming from well known spamming countries. But keep in mind, that there may also legitim mails comming from those! ;)
planet, policyd weight, Postfix, spam
Next.