diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2018-12-28 13:02:37 +0100 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2018-12-28 13:58:40 +0100 |
commit | 5c20c7932a35cb792aad928702cc34ebdfcb0f40 (patch) | |
tree | 4213bdcc4fbeff3aefa42cab1233370302c2095c /mkudffs/main.c | |
parent | 6779fa7c477d1639d3e76f206dbc434a7503e091 (diff) | |
parent | f97eb8990990b7938aecad3f06883f682750a125 (diff) |
Import Debian changes 2.1-1HEADdebian/2.1-1archive/debian/2.1-1master
udftools (2.1-1) unstable; urgency=medium
* New upstream release (Closes: #916006)
* Update Standards-Version to 4.3.0
* Update to debhelper 11
* Update copyright and signing-key.asc
Diffstat (limited to 'mkudffs/main.c')
-rw-r--r-- | mkudffs/main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mkudffs/main.c b/mkudffs/main.c index 066afac..0932013 100644 --- a/mkudffs/main.c +++ b/mkudffs/main.c @@ -1,8 +1,8 @@ /* * main.c * - * Copyright (c) 2001-2002 Ben Fennema <bfennema@falcon.csc.calpoly.edu> - * Copyright (c) 2014-2017 Pali Rohár <pali.rohar@gmail.com> + * Copyright (c) 2001-2002 Ben Fennema + * Copyright (c) 2014-2018 Pali Rohár <pali.rohar@gmail.com> * All rights reserved. * * This program is free software; you can redistribute it and/or modify @@ -30,19 +30,19 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <locale.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> -#include <time.h> -#include <sys/time.h> #include <errno.h> #include <limits.h> #include <dirent.h> #include <sys/ioctl.h> #include <linux/fs.h> #include <linux/fd.h> +#include <sys/sysmacros.h> #include "mkudffs.h" #include "defaults.h" @@ -474,6 +474,9 @@ int main(int argc, char *argv[]) dump_space(&disc); + if (disc.blocks <= 257) + fprintf(stderr, "%s: Warning: UDF filesystem has less than 258 blocks, it can cause problems\n", appname); + if (len == (size_t)-1) fprintf(stderr, "%s: Warning: Volume Set Identifier must be at least 8 characters long\n", appname); else if (len < 16) |