summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-30Allow building on systems that do not have rpc header filesTheodore Ts'o
Android's bionic C library doesn't have Sun RPC support. Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Jan Kara <jack@suse.cz>
2016-03-30Update the gitignore file to ignore additional generated filesTheodore Ts'o
Ignore the files generated by libtool, gettext, and rpcgen Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Jan Kara <jack@suse.cz>
2016-02-17Don't build rpc.rquotad when --disable-rpc was requested.Lars Wendler
This fixes a buch of undefined references: x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2 -pipe -D_GNU_SOURCE -Wa ll -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -pie -Wl,-O1 -Wl,--hash-st yle=gnu -Wl,--sort-common -Wl,--as-needed -o rpc.rquotad rquota_server.o rquota_ svc.o svc_socket.o libquota.a rquota_svc.o: In function `rquotaprog_2': rquota_svc.c:(.text+0x1d3): undefined reference to `xdr_setquota_rslt' rquota_svc.c:(.text+0x1da): undefined reference to `xdr_ext_setquota_args' rquota_svc.c:(.text+0x2b2): undefined reference to `xdr_setquota_rslt' rquota_svc.c:(.text+0x2b9): undefined reference to `xdr_ext_setquota_args' rquota_svc.c:(.text+0x2ff): undefined reference to `xdr_getquota_rslt' rquota_svc.c:(.text+0x306): undefined reference to `xdr_ext_getquota_args' rquota_svc.c:(.text+0x31a): undefined reference to `xdr_getquota_rslt' rquota_svc.c:(.text+0x321): undefined reference to `xdr_ext_getquota_args' rquota_svc.o: In function `rquotaprog_1': rquota_svc.c:(.text+0x3f3): undefined reference to `xdr_setquota_rslt' rquota_svc.c:(.text+0x3fa): undefined reference to `xdr_setquota_args' rquota_svc.c:(.text+0x4d2): undefined reference to `xdr_setquota_rslt' rquota_svc.c:(.text+0x4d9): undefined reference to `xdr_setquota_args' rquota_svc.c:(.text+0x51f): undefined reference to `xdr_getquota_rslt' rquota_svc.c:(.text+0x526): undefined reference to `xdr_getquota_args' rquota_svc.c:(.text+0x53a): undefined reference to `xdr_getquota_rslt' rquota_svc.c:(.text+0x541): undefined reference to `xdr_getquota_args' collect2: error: ld returned 1 exit status Makefile:901: recipe for target 'rpc.rquotad' failed Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-27Add support for scanning using Q_XGETNEXTQUOTAJan Kara
Add support for scanning of all available quota structures using Q_XGETNEXTQUOTA quotactl. Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-27Scan dquots using Q_GETNEXTQUOTAJan Kara
Check for new kernel quotactl Q_GETNEXTQUOTA and if available use it for scanning all dquot structures. Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-19Don't link all binaries with ldap libraryJan Kara
The default action-if-found of AC_CHECK_LIB() is to append checked library to LIBS. Thus check for ldap library resulted in unwanted addition of -lldap to LIBS as [] is an empty string in M4 and the default action is used. Fix the problem by providing proper action-if-found which was currently just hidden behind the check. Also do similar cleanup for AC_CHECK_HEADER check although there it didn't have any undesired side-effect. Reported-by: Petr Písař <petrp@users.sf.net> Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-19repquota: -F option takes an argEric Sandeen
Commit a5876145 added a new -O option which takes an argument, but in the process lost the argument specifier for "F". As a result, the use of "-F" segfaults when NULL is sent to name2fmt() instead of the provided argument. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-05Set -fPIC and -pie as default params when buildingTomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-04Do not accidentaly override commandline passed CFLAGS.Tomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.com> Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-04Respect the docdir declaration and do not override.Tomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.com> Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-04Print explicitely disabled options properlyJan Kara
Currently we printed only an empty string when some build option was disabled explicitely via --disable-foo. Print 'no' in that case as well. Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-04Distribute ldap-scripts directory tooTomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.com> Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-04Fix build with disabled ldapJan Kara
Reported-by: Tomas Chvatal <tchvatal@suse.com> Signed-off-by: Jan Kara <jack@suse.cz>
2016-01-04Fix whitespace in configure.acTomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.com> Signed-off-by: Jan Kara <jack@suse.cz>
2015-12-18Release quota-tools 4.03Jan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2015-12-18Revive ChangelogJan Kara
I like the old format of Changelog more, also some of the history is covered only in the text file. Finally sometimes hand-editing Changelog may be useful. So revive Changelog in git. Signed-off-by: Jan Kara <jack@suse.cz>
2015-12-18Update release script to work with new build systemJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2015-12-18Make new build system use original versioning schemeJan Kara
New build system changed versioning scheme to x.y.z but quota-tools have traditionally used x.y where 'y' has two digits. There is no strong reason to change the original scheme so return to it. Signed-off-by: Jan Kara <jack@suse.cz>
2015-12-16Automatic update of translation filesJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2015-12-16warnquota: Added StartTLS supportIan Allison
An option called LDAP_TLS has been added to warnquota.conf which controls whether the LDAP connection uses StartTLS. The option supports the following values never - Don't ask for a certificate allow - Ask for certificate, proceed if valid try - Ask for certificate, proceed if valid or not given demand - Ask for certificate, proceed only if given and valid Signed-off-by: Ian Allison <iana@pims.math.ca> Signed-off-by: Jan Kara <jack@suse.cz>
2015-12-16quota_nld: multicast project quota warnings via dbusMasatake YAMATO
Quota subsystem in kernel introduced project quota. This patch improves the userspace side. This patch prevents quota_nld writing warnings to a console when receiving project quota warnings from kernel because there is no such concept, "console associated with a project id". Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2015-04-14Fix building of rquota.[ch] filesJan Kara
Make from clean sources failed because automake dependency tracking doesn't directly work with generated source files such as rquota.c or rquota.h. Fix the problem by telling automake to generate these files first using BUILT_SOURCES variable. Signed-off-by: Jan Kara <jack@suse.cz>
2015-03-08edquota: fix mtime checkKonstantin Khlebnikov
Otherwise tool never updates quota because old mtime always <= new. Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Signed-off-by: Jan Kara <jack@suse.cz>
2015-03-08Makefile.am: remove quotaoff symlink before installKonstantin Khlebnikov
Otherwise make install fails if it's already exists: make install-exec-hook make[3]: Entering directory `/root/quota' ln: failed to create symbolic link `/usr/local/sbin/quotaoff': File exists make[3]: *** [install-exec-hook] Error 1 Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Signed-off-by: Jan Kara <jack@suse.cz>
2015-03-04warnquota: Fix some leaks in LDAP lookup codeJan Kara
Some of LDAP functions return dynamically allocated memory that the caller is responsible to free. So do this to avoid memory leaks. Signed-off-by: Jan Kara <jack@suse.cz>
2015-03-04warnquota: Don't CC empty namesJan Kara
Sometimes admin may not want to be CCed on emails. Allow that by setting CC_TO to empty string (not setting CC_TO at all currently defaults to sending CC to root so we don't want to change that for compatibility reasons). Signed-off-by: Jan Kara <jack@suse.cz>
2015-02-10Fix typos in German translationMichael Meskes
Signed-off-by: Michael Meskes <michael@fam-meskes.de> Signed-off-by: Jan Kara <jack@suse.cz>
2015-01-05quota_nld: Fixup buildJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2015-01-05edquota: Do not unnecessarily overwrite limits/timesJan Kara
When user doesn't edit the file with limits / grace times, there is no need to overwrite the values in quota files. Maybe admin really wanted to cancel the operation by not writing the file. Signed-off-by: Jan Kara <jack@suse.cz>
2015-01-05edquota: Fix error handlingJan Kara
Error handling didn't properly free quota structures allocated for a user when editing of limits failed for some reason. We also didn't bail out when editing of grace times failed. Fix the problems by jumping to a proper label. Signed-off-by: Jan Kara <jack@suse.cz>
2015-01-05edquota: Reopen the file with new grace timesJan Kara
Reopen the file with grace times - editor may have written the file into a new inode and thus we cannot read the contents through the old fd. Signed-off-by: Jan Kara <jack@suse.cz>
2015-01-05edquota: Unify code for editing grace times and quota limitsJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02Fix the po generating by accidentaly ignoring POTFILES.in fileTomáš Chvátal
Refresh the po's again now. Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02Install example file to docs.Tomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02Ignore generated tarballs.Tomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02config.h.in is autogenerated.Tomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02Use just one define to determine if using ext2directTomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02Stop using deprecated ldap_perrorTomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02Refresh and fix the po files.Tomáš Chvátal
Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02Create new autotools buildsystemTomáš Chvátal
Reflect what was done before and try to mimic it Remove ChangeLog, now autogenerated for dist target Remove confusing gettext README and try to add new approach for translations [JK: Fixed build without RPC support] Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz>
2014-11-26Add release scriptJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2014-11-26Release quota-tools 4.02Jan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2014-11-26Remove KERN_KNOWN_QUOTA_VERSIONJan Kara
This define is unused and using it would be a bad idea (kernel quota version doesn't mean anything useful anymore). Remove it. Signed-off-by: Jan Kara <jack@suse.cz>
2014-11-26Skip NFS mounts without rquotad RPC service silentlyPetr Písař
If NFS server does uses quotas, then it's high chance the RCP rquotad service is not running at all. Then listing quotas for such NFS mount point results into a warning about "connection refused". This warning can be obtrusive if a host has mounted various mixture of NFS exports with and without quotas. This patch recognizes this special error state (after performing a query to a client without running rquotad) and considers such server as having quotas disabled. This silents the warning effectively. JK: Some coding style fixes, treat also rpc_set_quota() this way. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2014-10-01Fix handling of space and inode valuesJan Kara
Commit 0214512479e0 (Properly handle signed space and inode values) broke parsing of pure numbers in str2number() so that it would always complain about "Integer overflow while interpreting decimal unit". Fix condition checking for overflow. Also number2str() was buggy and wouldn't guess proper units for negative numbers. Signed-off-by: Jan Kara <jack@suse.cz>
2014-07-24Update polish translationJakub Bogusz
Signed-off-by: Jakub Bogusz <qboosh@pld-linux.org> Signed-off-by: Jan Kara <jack@suse.cz>
2014-05-01warnquota: Use LDAP for looking up CC value as wellJan Kara
When LDAP is configured do not lookup only 'TO' field in LDAP but also a 'CC' field. Signed-off-by: Jan Kara <jack@suse.cz>
2014-05-01Prevent from grace period overflow in RPC transportPetr Písař
The RPC transports grace time as unsigned int, but the value stored there and retrivedd from is treated as singed difference against current time. This leads to overflow after expiring the grace time which is presented as an enourmously large grace time instead of "none" in the quota(1) output. There also possible an overflow when the time difference is still bigger than an int can represent. This first issue is solved by explicit type cast to/from int32_t, the second issue is fixes by limiting the value into int32_t range. <https://sourceforge.net/p/linuxquota/bugs/115/> Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2014-05-01Do not document location of quotaon and quotaoffPetr Písař
quotaon(8) manual page lists location of quotaon and quotaoff tools as /usr/sbin. However configure option --enable-rootsbin allows to relocte the executable into /sbin redendering the manual wrong. This patch removes the path from the manual page, so it's valid in both cases. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2014-05-01Properly handle signed space and inode valuesJan Kara
For cluster filesystems, kernel can sometimes return negative values of used space or inodes (because counters are not completely synchronized across the cluster). Make quota tools properly print these. Signed-off-by: Jan Kara <jack@suse.cz>