~mrooney/ecryptfs/nautilus-integration

« back to all changes in this revision

Viewing changes to src/utils/io.c

  • Committer: mhalcrow@us.ibm.com
  • Date: 2007-11-06 22:56:01 UTC
  • Revision ID: git-v1:f8357de9d554b274497b5cce9db4347254b7e7eb
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component,
etc.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
                rc = -ENOMEM;
76
76
                goto out;
77
77
        }
78
 
        temp[0] = '\0';
79
78
        *val = temp;
80
79
        if (!echo) {
81
80
                rc = disable_echo(&saved_settings);
241
240
                curr = curr->next;
242
241
        }
243
242
        printf("\nSelect desired key module [%d]: ", default_key_mod);
244
 
        if (fgets(str, 4, stdin) == NULL) {
245
 
                printf("\nError reading input\n");
246
 
                rc = -EIO;
247
 
                goto out;
248
 
        }
 
243
        fgets(str, 4, stdin);
249
244
        printf("\n");
250
245
        str[strlen(str)] = '\0';
251
246
        if (str[0] == '\n')